<template>
    <div class="channelitem">
        <ChannelSection :section='hotSection' :num='4' ></ChannelSection>
        <ChannelSection :section='newSection' page='true'></ChannelSection>
    </div>
</template>

<script>
import ChannelSection from '../components/common/ChannelSection'
export default {
    components:{
        ChannelSection
    },
    data(){
        return {
            section:this.$route.params,
            hotSection:{},
            newSection:{}
        }
    },
    methods:{
        bundleScroll(e){
            console.log(e)
            console.log(this)
        }
    },
    created(){
        const rid=this.$route.params.rid
        this.hotSection={rid,name:'热门推荐'}
        console.log(this.hotSection)
        this.newSection={rid,name:'最新视频'}
    }
}
</script>

<style>

</style>